package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.AreaMapper;
import com.example.pojo.Area;
import com.example.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements AreaService {
    @Autowired
    private AreaMapper areaMapper;


    @Override
    public List<Area> selectProvince(Integer cid) {
        return areaMapper.selectProvince(cid);
    }

    @Override
    public String selectCityNameById(Integer id) {
        return areaMapper.selectCityNameById(id);
    }
}
